package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Required;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course")
public class Course extends Model<Course> {

    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 状态id
     */
    @TableField("statusId")
    private Integer statusId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 一级类别id
     */
    @TableField("categoryId1")
    private Long categoryId1;

    /**
     * 二级类别id
     */
    @TableField("categoryId2")
    private Long categoryId2;

    /**
     * 三级类别id
     */
    @TableField("categoryId3")
    private Long categoryId3;

    /**
     * 课程名
     */
    @TableField("courseName")
    private String courseName;

    /**
     * 课程logo
     */
    @TableField("courseLogo")
    private String courseLogo;

    /**
     * 课程简介id
     */
    @TableField("introduceId")
    private Long introduceId;

    /**
     * 学习人数
     */
    @TableField("countStudy")
    private Integer countStudy;

    /**
     * 总课时数
     */
    @TableField("periodTotal")
    private Integer periodTotal;


    /**
     * 总课时数
     */
    @TableField("learnOrder")
    private Integer learnOrder;


    public static final String ID = "id";

    public static final String STATUSID = "statusId";

    public static final String SORT = "sort";

    public static final String CATEGORYID1 = "categoryId1";

    public static final String CATEGORYID2 = "categoryId2";

    public static final String CATEGORYID3 = "categoryId3";

    public static final String COURSENAME = "courseName";

    public static final String COURSELOGO = "courseLogo";

    public static final String INTRODUCEID = "introduceId";

    public static final String COUNTSTUDY = "countStudy";

    public static final String PERIODTOTAL = "periodTotal";


    public static final String LEARNORDER = "learnOrder";




    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
